/**
 * 软件著作权：
 *
 * 系统名称：  云序列
 *
 * 文件名称：  IImpulseSenderConstants.java
 *
 * 功能描述：  发号器常量
 * 
 * 版本历史：
 * 
 * 2015-10-11   1.0.0版 （龙色波）（创建文件）
 */
package com.dfhc.base.impulsesender;

import java.util.Map;

import org.apache.commons.collections.map.CaseInsensitiveMap;
import org.quickbundle.project.IGlobalConstants;
/**
 * 发号器 常量类
 * 
 * @author 龙色波
 * @see 参见的类
 */
public interface IImpulseSenderConstants extends IGlobalConstants {

    //表名、显示名
    public final static String TABLE_NAME = "base_impulse_sender";
    public final static String TABLE_NAME_DISPLAY = "发号器";
    public final static String TABLE_PK = "id";
 // 日期字段名
	public final String FIELD_UPDATE_DATE = "update_date";
	// 当期值字段名
	public final String FIELD_CURRENT_VALUE = "current_value";
	// 序列值长度
	public final String FIELD_SEQUENCE_LEN = "sequence_len";
	// 当期格式化后序列值
	public final String FIELD_CURRENT_FMT_VALUE = "current_fmt_value";
	// 序列化格式规则
	public final String FIELD_SEQUENCE_RULE = "sequence_rule";
	// 序列名称
	public final String FIELD_SEQUENCE_NAME = "sequence_name";
	// 周期类型
	public final String FIELD_CYCLE_TYPE = "cycle_type";
	// 域名ID
	public final String FIELD_DOMAIN_ID="domain_id";
	// 域名 
	public final String FIELD_DOMAIN_NAME="domain_name";
	// 备注 
	public final String FIELD_REMARK="remark";
    //列名汉化
    @SuppressWarnings({ "unchecked", "serial" })
    public final static Map<String, String> TABLE_COLUMN_DISPLAY = new CaseInsensitiveMap(){{
		put("usable_status","数据可用状态");
		put("create_time","create_time");
		put("create_ip","创建IP");
		put("create_user_id","创建用户ID");
		put("create_user_name","create_user_name");
		put("modify_time","modify_time");
		put("modify_ip","修改IP");
		put("modify_user_id","修改用户ID");
		put("modify_user_name","modify_user_name");
		put("delete_time","delete_time");
		put("delete_ip","delete_ip");
		put("delete_flag","delete_flag");
		put("delete_user_id","delete_user_id");
		put("delete_user_name","delete_user_name");
		put("order_code","排序编码");
		put("attribute1","扩展字段1");
		put("attribute2","扩展字段2");
		put("attribute3","扩展字段3");
		put("attribute4","扩展字段4");
		put("attribute5","扩展字段5");
		put("domainId","域名ID");
		put("sequenceName","序列名称");
		put("updateDate","日期");
		put("cycleType","周期类型");
		put("currentValue","当前序列值");
		put("currentFmtValue","当前格式化后序列值");
		put("sequenceRule","序列格式规则");
		put("sequenceLen","序列值长度");
		put("remark","备注");
		put("domainName","域名");
    }};

    //日志类型名称
    public final static String LOG_TYPE_NAME = TABLE_NAME_DISPLAY + "管理";
}
